package com.xrh.xdemo.service.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.experimental.Tolerate;


/**
* 序号
*/
@Data
@TableName(value = "seq_info" , autoResultMap = true)
public class SeqInfoEntity  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
    /**主键ID */
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@TableId(value="id" ,type = IdType.ASSIGN_ID)
	private Long id;

	/**前缀 */
	@TableField("prefix")
	private String prefix;

	/**序号 */
	@TableField("seq_no")
	private Long seqNo;
	

    @Tolerate
    public SeqInfoEntity(){}


	public SeqInfoEntity(String prefix, Long seqNo) {
		super();
		this.prefix = prefix;
		this.seqNo = seqNo;
	}
}
